Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include node condition value in check message #2362

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

dwradcliffe
Copy link
Contributor

What does this PR do?

Provide additional information in service check message when the node condition check is failing.

Motivation

I was looking at the data we have for a failing kubernetes_state.node.ready service check and it says this:

node:xxx-0000 is currently reporting condition:Ready

The condition is always present, but the value of the condition is the important bit. We should include that in the message.

This PR should change the message to be:

node:xxx-0000 is currently reporting condition:Ready = false

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

@dwradcliffe dwradcliffe requested review from a team as code owners October 9, 2018 14:08
@codecov-io
Copy link

Codecov Report

Merging #2362 into master will increase coverage by 2.7%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2362      +/-   ##
==========================================
+ Coverage      80%   82.71%    +2.7%     
==========================================
  Files         210        4     -206     
  Lines       14447      376   -14071     
  Branches     1561       72    -1489     
==========================================
- Hits        11559      311   -11248     
+ Misses       2488       44    -2444     
+ Partials      400       21     -379

Copy link
Contributor

@xvello xvello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution!

@xvello xvello merged commit e28210d into DataDog:master Oct 11, 2018
@dwradcliffe dwradcliffe deleted the patch-1 branch October 11, 2018 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants